#ifndef __LOGICAL_SEQYENCE_H__
#define __LOGICAL_SEQYENCE_H__

#include "cocos2d.h"
#include "AnimationUnit.h"
#include <map>

using namespace std;

typedef map<string, AnimationUnit*> MapOfpAnimationUnit;

class LogicalSequence
{
public:
	LogicalSequence();
	~LogicalSequence();

	string getName();
	void setName(const char* name);

	string getStartName();
	void setStartName(const char* startName);
	
	bool addAnimationUnits(string name,AnimationUnit* pAnimationUnits);
	AnimationUnit* getAnimationUnits(string name);
	AnimationUnit* getStartAnimationUnits();

private:
	string m_name;
	string m_startName;
	MapOfpAnimationUnit m_mapAnimationUnits;
	//map<string, AnimationUnit*>* m_mapAnimationUnits;
};

#endif //__LOGICAL_SEQYENCE_H__